import { http, uniFileUpload } from '@/utils/http'
/**
 * @sign 登录
 * @method POST
 * @url /v1/Users/Logi
 */
export const login_API = (data) => {
    return http({
        url: `/v1/Users/Login`,
        method: 'POST',
        data,
    })
}

/**
 * @sign 个人基础信息
 * @method GET
 * @url /v1/Users/GetUserInfo
 */
export const basicInfo_API = () => {
    return http({
        url: `/v1/Users/GetUserInfo`,
        method: 'GET',
    })
}
/**
 * @sign 检查版本更新
 * @method GET
 * @url /v1/SysAppVersion/VerCheck
 */
export const VerCheck_API = (data) => {
    return http({
        url: `/v1/SysAppVersion/VerCheck/${data.appid}`,
        method: 'GET',
        data,
    })
}
/**
 * @sign 获取文件列表
 * @method GET
 * @url /SysFile/GetPage
 */
export const GetPageFile_API = (data) => {
    return http({
        url: `/v1/SysFile/GetPage`,
        method: 'GET',
        data,
    })
}
/**
 * @sign 地质灾害点
 * @method GET
 * @url /PntTotal/GetTotal
 */
export const GetTotalPntTotal_API = () => {
    return http({
        url: `/v1/PntTotal/GetTotal`,
        method: 'GET',
    })
}

/**
 * @sign 地质灾害点
 * @method GET
 * @url /QWeather/WeatherNow
 */
export const GetWeatherNow_API = () => {
    return http({
        url: `/v1/QWeather/WeatherNow`,
        method: 'GET',
    })
}
/**
 * @sign 地质灾害点
 * @method GET
 * @url /QWeather/WeatherDay
 */
export const GetWeatherDay_API = (data) => {
    return http({
        url: `/v1/QWeather/WeatherDay/${data}`,
        method: 'GET',
    })
}
/**
 * @sign 乡镇隐患点分布特征统计
 * @method GET
 * @url /Yhd/GetTownFenBuTeZheng
 */
export const GetTownFenBuTeZheng_API = () => {
    return http({
        url: `/v1/Yhd/GetTownFenBuTeZheng`,
        method: 'GET',
    })
}
/**
 * @sign 乡镇隐患点统计
 * @method GET
 * @url /Yhd/GetTownStats
 */
export const GetTownStats_API = () => {
    return http({
        url: `/v1/Yhd/GetTownStats`,
        method: 'GET',
    })
}

/**
 * @sign 乡镇隐患点灾害类型征统计
 * @method GET
 * @url /Yhd/GetTownZaiHaiLeiXing
 */
export const GetTownZaiHaiLeiXing_API = () => {
    return http({
        url: `/v1/Yhd/GetTownZaiHaiLeiXing`,
        method: 'GET',
    })
}

/**
 * @sign 乡镇隐患点规模等级统计
 * @method GET
 * @url /Yhd/GetTownGuiMoDengJi
 */
export const GetTownGuiMoDengJi_API = () => {
    return http({
        url: `/v1/Yhd/GetTownGuiMoDengJi`,
        method: 'GET',
    })
}
/**
 * @sign 乡镇隐患点险情等级统计
 * @method GET
 * @url /Yhd/GetTownXianQingDengJi
 */
export const GetTownXianQingDengJi_API = () => {
    return http({
        url: `/v1/Yhd/GetTownXianQingDengJi`,
        method: 'GET',
    })
}
/**
 * @sign 乡镇隐患点威胁人口统计
 * @method GET
 * @url /Yhd/GetTownWeiXieRenKou
 */
export const GetTownWeiXieRenKou_API = () => {
    return http({
        url: `/v1/Yhd/GetTownWeiXieRenKou`,
        method: 'GET',
    })
}
/**
 * @sign 乡镇隐患点威胁财产统计
 * @method GET
 * @url /Yhd/GetTownWeiXieCaiChan
 */
export const GetTownWeiXieCaiChan_API = () => {
    return http({
        url: `/v1/Yhd/GetTownWeiXieCaiChan`,
        method: 'GET',
    })
}
/**
 * @sign 乡镇统计
 * @method GET
 * @url /Qpjf/GetTownStats
 */
export const GetQpjfTownStats_API = () => {
    return http({
        url: `/v1/Qpjf/GetTownStats`,
        method: 'GET',
    })
}
/**
 * @sign 乡镇统计
 * @method GET
 * @url /Xpdy/GetTownStats
 */
export const GetXpdyTownStats_API = () => {
    return http({
        url: `/v1/Xpdy/GetTownStats`,
        method: 'GET',
    })
}
/**
 * @sign 乡镇统计
 * @method GET
 * @url /Jcd/GetTownStats
 */
export const GetJcdTownStats_API = () => {
    return http({
        url: `/v1/Jcd/GetTownStats`,
        method: 'GET',
    })
}
/**
 * @sign 隐患点分页统计
 * @method GET
 * @url /Yhd/GetPage
 */
export const GetPageYhd_API = (data) => {
    return http({
        url: `/v1/Yhd/GetPage`,
        method: 'GET',
        data,
    })
}
/**
 * @sign 切坡建房分页统计
 * @method GET
 * @url /Qpjf/GetPage
 */
export const GetPageQpjf_API = (data) => {
    return http({
        url: `/v1/Qpjf/GetPage`,
        method: 'GET',
        data,
    })
}
/**
 * @sign 监测点分页统计
 * @method GET
 * @url /Jcd/GetPage
 */
export const GetPageJcd_API = (data) => {
    return http({
        url: `/v1/Jcd/GetPage`,
        method: 'GET',
        data,
    })
}
/**
 * @sign 风险区分页统计
 * @method GET
 * @url /Xpdy/GetPage
 */
export const GetPageXpdy_API = (data) => {
    return http({
        url: `/v1/Xpdy/GetPage`,
        method: 'GET',
        data,
    })
}
/**
 * @sign 风险区分页统计
 * @method GET
 * @url /Xpdy/GetPage
 */
export const GetXpdy_API = (data) => {
    return http({
        url: `/v1/Xpdy/${data}`,
        method: 'GET',
    })
}
/**
 * @sign 乡镇列表
 * @method GET
 * @url /SysArea/GetTownKeyValue
 */
export const GetTownKeyValue_API = () => {
    return http({
        url: `/v1/SysArea/GetTownKeyValue`,
        method: 'GET',
    })
}
/**
 * @sign 用户管理
 * @method GET
 * @url /Users/GetChildrenList
 */
export const GetChildrenList_API = (data) => {
    return http({
        url: `/v1/Users/GetChildrenList?usertype=${data}`,
        method: 'GET',
    })
}
/**
 * @sign 任务列表
 * @method GET
 * @url /SysTask/GetPage
 */
export const GetSysTaskPage_API = (data) => {
    return http({
        url: `/v1/SysTask/GetPage`,
        method: 'GET',
        data,
    })
}
/**
 * @sign 字典库
 * @method GET
 * @url /SysDict
 */
export const GetSysDict_API = (data) => {
    return http({
        url: `/v1/SysDict/${data}`,
        method: 'GET',
    })
}
/**
 * @sign //按乡镇创建任务
 * @method POST
 * @url /SysTask/CreateByTown
 */
export const CreateByTown_API = (data) => {
    return http({
        url: `/v1/SysTask/CreateByTown`,
        method: 'POST',
        data,
    })
}

/**
 * @sign 删除任务
 * @method POST
 * @url /SysTask/Operate/
 */
export const SysTaskOperate_API = (data, id) => {
    return http({
        url: `/v1/SysTask/Operate/${id}?optype=${data}`,
        method: 'POST',
    })
}
/**
 * @sign 巡查任务查询
 * @method GET
 * @url /SysTask/Operate/
 */
export const SysTaskLook_API = (taskId) => {
    return http({
        url: `/v1/SysTask/${taskId}`,
        method: 'GET',
    })
}
/**
 * @sign 修改任务
 * @method PUT
 * @url /SysTask/CreateByTown
 */
export const updateByTown_API = (data, taskId) => {
    return http({
        url: `/v1/SysTask/${taskId}`,
        method: 'PUT',
        data,
    })
}
/**
 * @sign 巡查任务查询
 * @method GET
 * @url /SysTask/Operate/
 */
export const XcxxLook_API = (taskId) => {
    return http({
        url: `/v1/Xcxx/${taskId}`,
        method: 'GET',
    })
}

/**
 * @sign 删除图片
 * @method DELETE
 * @url /SysFile
 */
export const SysFileDel_API = (id) => {
    return http({
        url: `/v1/SysFile/${id}`,
        method: 'DELETE',
    })
}

/**
 * @sign 修改任务填报
 * @method PUT
 * @url /SysFile
 */
export const updateXcxx_API = (data, id) => {
    return http({
        url: `/v1/Xcxx/${id}`,
        method: 'PUT',
        data,
    })
}
/**
 * @sign 新增任务填报
 * @method POST
 * @url /SysFile
 */
export const addXcxx_API = (data) => {
    return http({
        url: `/v1/Xcxx`,
        method: 'POST',
        data,
    })
}

/**
 * @sign 地图数据
 * @method GET
 * @url /Zqsb/GetMapData
 */
export const GetMapData_API = () => {
    return http({
        url: `/v1/Zqsb/GetMapData`,
        method: 'GET',
    })
}
/**
 * @sign 灾情上报获取
 * @method GET
 * @url /Zqsb/
 */
export const GetZqsbDetail_API = (id) => {
    return http({
        url: `/v1/Zqsb/${id}`,
        method: 'GET',
    })
}
/**
 * @sign 灾情删除
 * @method DELETE
 * @url /Zqsb/
 */
export const ZqsbDel_API = (id) => {
    return http({
        url: `/v1/Zqsb/${id}`,
        method: 'DELETE',
    })
}
/**
 * @sign 灾情上报新增
 * @method POST
 * @url /Zqsb/
 */
export const addZqsb_API = (data) => {
    return http({
        url: `/v1/Zqsb`,
        method: 'POST',
        data,
    })
}
/**
 * @sign 灾情上报修改
 * @method PUT
 * @url /Zqsb/
 */
export const updageZqsb_API = (data, id) => {
    return http({
        url: `/v1/Zqsb/${id}`,
        method: 'PUT',
        data,
    })
}
/**
 * @sign 灾情历史信息
 * @method GET
 * @url /Zqsb/GetPage
 */
export const GetZqsbGetPage_API = (data) => {
    return http({
        url: `/v1/Zqsb/GetPage`,
        method: 'GET',
        data,
    })
}
/**
 * @sign 网格信息
 * @method GET
 * @url /ZrtxDistrict/GetPage
 */
export const GetZrtxDistrictGetPage_API = () => {
    return http({
        url: `/v1/ZrtxDistrict/GetPage`,
        method: 'GET',
    })
}
/**
 * @sign 网格信息
 * @method GET
 * @url /ZrtxTown/GetPage
 */
export const GetZrtxTownGetPage_API = (data) => {
    return http({
        url: `/v1/ZrtxTown/GetPage`,
        method: 'GET',
        data,
    })
}
/**
 * @sign 网格信息
 * @method GET
 * @url /ZrtxVillage/GetPage
 */
export const GetZrtxVillageGetPage_API = (data) => {
    return http({
        url: `/v1/ZrtxVillage/GetPage`,
        method: 'GET',
        data,
    })
}
/**
 * @sign 值班查询列表
 * @method GET
 * @url /geomis-mobile-biz/beOnDuty
 */
export const GetbeOnDuty_API = (data) => {
    return http({
        url: `/v1/geomis-mobile-biz/beOnDuty`,
        method: 'GET',
        data,
    })
}

/**
 * @sign 雨量计
 * @method GET
 * @url /Ylj/GetPage
 */
export const GetYljPage_API = (data) => {
    return http({
        url: `/v1/Ylj/GetPage`,
        method: 'GET',
        data,
    })
}
/**
 * @sign 气象站
 * @method GET
 * @url /QxStation/GetPage
 */
export const GetQxStationPage_API = (data) => {
    return http({
        url: `/v1/QxStation/GetPage`,
        method: 'GET',
        data,
    })
}
